home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8928 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c
  4. Subject: Re: How do I link a library to my program??
  5. Date: 7 Mar 1996 11:48:48 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4hmif0$kff@sparcserver.lrz-muenchen.de>
  9. References: <313d3c58.4431866@news.csus.edu> <4hkj89$iql@nnrp1.news.primenet.com> <313E7F15.FF6D5DF@fnx.com.au>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. Kiran Muglurmath <kiranm@fnx.com.au> writes:
  13.  
  14. >> In article <313d3c58.4431866@news.csus.edu>, wleong@sfsu.edu says...
  15. >> >
  16. >> >    I have been given a library file (winsock.lib) which contains
  17. >> >routines that I need to use in my program. But even if I include it
  18. >> >in my project file, linker still couldn't find the routines in the
  19. >> >lib. Somehow I am under the impression that I need to call certain
  20. >> >functions in my progam in order to load the library into the module.
  21.  
  22. >If the library in question is an import library for a DLL, then you must
  23. >also set the link flag to Dynamic linking in TargetExpert. If it is set
  24. >to Static linking, you will see the same symptoms you described.
  25.  
  26. Neither our Watcom 10.5 nor the brand new Visual C++ 4.0 compilers
  27. have a TargetExpert. Have I missed a significant extension to the
  28. definition of the C programming language, or is this answer limited
  29. to a special implementation that the original poster may or may not
  30. have?
  31.  
  32. If you post "solutions" that are limited to _one_ implementation 
  33. of a language, at least say so in your "answer".
  34.  
  35. Kurt
  36. --
  37. | Kurt Watzka                             Phone : +49-89-2180-6254
  38. | watzka@stat.uni-muenchen.de
  39. | ua302aa@sunmail.lrz-muenchen.de
  40.